const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer:{
    proxy:{
      '/dev1-api':{
        target:'http://localhost:5000',
        changeOrigin:true,
        pathRewrite:{'^/dev1-api':''}
     },
    '/dev2-api':{
        target:'http://localhost:5001',
        changeOrigin:true,
        pathRewrite:{'^/dev2-api':''}
     },
    '/toutiao-api':{
        target:'https://www.toutiao.com',
        changeOrigin:true,
        pathRewrite:{'^/toutiao-api':''}
     }
    }
  }
})
